package com.sinosoft.emplmis.jobless.service;

import java.util.List;

import org.apache.log4j.Logger;

import com.sinosoft.emplmis.jobless.entity.JoblessServerEntity;
import com.sinosoft.emplmis.jobless.manager.JoblessServerManager;
import com.sinosoft.emplmis.jobless.web.dto.JoblessServerData;

public class JoblessServerService {

	private JoblessServerManager joblessServerManager;

	public JoblessServerManager getJoblessServerManager() {
		return joblessServerManager;
	}

	public void setJoblessServerManager(JoblessServerManager joblessServerManager) {
		this.joblessServerManager = joblessServerManager;
	}
	
	public int insert(JoblessServerEntity Entity) {
		return joblessServerManager.insert(Entity);
	}
	
	public List<JoblessServerEntity> selectAll(String unemployedId){
		return joblessServerManager.selectAll(unemployedId);	
	}
	
	public JoblessServerEntity selectByPrimaryKey(String id){
		return joblessServerManager.selectByPrimaryKey(id);	
	}
	
	public int deleteByPrimaryKey(String id){
		return joblessServerManager.deleteByPrimaryKey(id);
	}
	
	public int updateByPrimaryKey(JoblessServerEntity record) {
		return joblessServerManager.updateByPrimaryKey(record);
	}
	
	/**
	  * 获取总条目数
	  * @param data
	  * @return
	  */
	public int count(String unemployedId){
		Logger.getRootLogger().info("获取总条目数");
	    return joblessServerManager.count(unemployedId);
    }
}
